package com.demo.security.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * Entity类
 *
 * @author liyan
 * @since 2020-06-17 13:12:33
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_user")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_name")
    private String userName;

    @TableField("password")
    private String password;

    @TableField("full_name")
    private String fullName;

    @TableField("mobile")
    private String mobile;
}
